package se3a04.mcmapster;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class huntFail extends Activity{
	
	Button yes, no;
	TextView failMessage;
	
	@Override
	protected void onCreate(Bundle huntFailState) {
	
		super.onCreate(huntFailState);
		setContentView(R.layout.noregisteredhunts);
		
		failMessage = (TextView) findViewById(R.id.tvRegError);
		yes = (Button) findViewById(R.id.bYes);
		no = (Button) findViewById(R.id.bNo);
		
		yes.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				
				Intent startHuntRegistration = new Intent("se3a04.mcmapster.HUNTREGISTRATION");
				startActivity(startHuntRegistration);
			}
		});
		
		no.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				
				Intent startHuntController = new Intent("se3a04.mcmapster.HUNTCONTROLLER");
				startActivity(startHuntController);
			}
		});
	}
}
